// api.js
import request from '../request';
// 列表
export const getSiteList = (params) => {
  return request({
    url: '/vilion/site/selectSiteList',
    method: 'GET',
    data: params
  });
};


// 新增站点查询


export const addSearchSite = (params) => {
  return request({
    url: '/vilion/site/queryBindSiteByEmsCode',
    method: 'GET',
    data: params
  });
};
// 绑定站点
export const bindTheSite = (params) => {
  return request({
    url: '/vilion/site/bindSite',
    method: 'put',
    data: params
  });
};


export const unBindTheSite = (params) => {
  return request({
    url: '/vilion/site/unBindSite',
    method: 'put',
    data: params
  });
};


